/**
 * Created by zengy on 2017/6/15.
 */
/**
 * Created by zengy on 2017/6/15.
 */
/**
 * Created by zengy on 2017/6/15.
 */
//商品设置
var http = HttpRequest.prototype;
//1.知识分类列表
http.informationList=function (params,cb) {
    var opts = {
        url : baseUrl + '/manager/wxInformation/queryWxInformationList ',
        type : 'POST',
        data:params
    };
    this.baseRequest(cb,opts)
}
//新增编辑知识
http.saveInformation=function (params,cb) {
    var opts = {
        url : baseUrl + '/manager/wxInformation/saveInformation',
        type : 'POST',
        data:params
    };
    this.baseRequest(cb,opts)
}

//删除知识
http.deleteWxInformation=function (params,cb) {
    var opts = {
        url : baseUrl + '/manager/wxInformation/deleteInformation',
        type : 'POST',
        data:params
    };
    this.baseRequest(cb,opts)
}
//启用知识
http.enableWxInformation=function (params,cb) {
    var opts = {
        url : baseUrl + '/manager/wxInformation/enableInformation',
        type : 'POST',
        data:params
    };
    this.baseRequest(cb,opts)
}
//禁用知识
http.disableInformation=function (params,cb) {
    var opts = {
        url : baseUrl + '/manager/wxInformation/disableInformation',
        type : 'POST',
        data:params
    };
    this.baseRequest(cb,opts)
}
//6.置顶
http.putInformationTop=function (params,cb) {
    var opts = {
        url : baseUrl + '/manager/wxInformation/putInformationTop',
        type : 'POST',
        data:params
    };
    this.baseRequest(cb,opts)
}

//获取知识类别信息

http.getCategoryMsg=function (cb) {
    var opts = {
        url : baseUrl + '/manager/wxInformation/getCategoryMsg',
        type : 'POST',

    };
    this.baseRequest(cb,opts)
}
